package com.un.ebs.product.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.un.ebs.core.enums.IEnum;
import lombok.Getter;

/**
 * @author liubo
 * @email liubocs@163.com
 * @date 2020/2/27 13:28
 */
@Getter
public enum ProductImageTypeEnum implements IEnum {

    /**
     * 主图
     */
    Main(0, "主图"),

    /**
     * 详情图
     */
    Detail(1, "详情图");

    ProductImageTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @EnumValue
    private final int value;

    private final String desc;

    @Override
    public int getCode() {
        return value;
    }
}
